<?php
if(!@include_once('database.php')){include 'database.php';}
include 'accent.php';
include 'siteclass.php';

$tbscat = selectTb("select cote, cat from categorie order by cote");
$tablecat = new Tableau(1,"tbcategorie",array("txt","txt"));
$tablecat->__setadd(True);
$tablecat->__setdel(True);
$tablecat->__setupdate(True);
$tablecat->__add(new Ligne(array("Cote","Cat&#233;gorie")));
foreach ($tbscat as $tb)
{
	$ligne = new Ligne(array());
	foreach ($tb as $elem)
	{
		$ligne->__add(str_replace($dbaccent, $codeaccent, $elem));
	}
	$tablecat->__add($ligne);
}
echo $tablecat->__tostring();
?>